package com.ruoyi.smart.service;

import com.ruoyi.smart.entity.MessageDb;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Service;

@Service
public  class SmartService {

    @Autowired
    MongoTemplate mongoTemplate;


    public  void insert(MessageDb message) {

        MessageDb insert = mongoTemplate.save(message);

        System.out.println(insert);
    }


}
